import time
import unittest
from BeautifulReport import BeautifulReport

discover = unittest.defaultTestLoader.discover(
    start_dir='', pattern='test*.py', top_level_dir=None)

now = time.strftime("%Y_%m_%d_%H_%M_%S",time.localtime(time.time()))
BeautifulReport(discover).report(filename='report_'+now+'.html', log_path='../report/', description='测试信息')

